<template>
	<view>
		<view class="bgwhite" style="width:100%;">
			<view class="w94">
				<u-cell-group>
					<u-cell-item :border="false" :arrow="false" title="用户头像">
						<u-icon slot="right-icon" size="80" name="/static/uview/common/logo.png"></u-icon>
					</u-cell-item>
					<u-cell-item :border="false" :arrow="false" title="手机号码" value="135****3190">
						<!-- <u-icon slot="right-icon" size="80" name="/static/uview/common/logo.png"></u-icon> -->
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="用户名" value="隔壁老王">
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="清除缓存" value="0MB">
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="用户协议">
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="隐私政策">
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="服务监督协议">
					</u-cell-item>
					<u-cell-item :border="false" :arrow="true" title="注销账户" @click="to('/pages/user/deluser')">
					</u-cell-item>
				</u-cell-group>
			</view>
		</view>
		
		<view class="bgwhite" style="width:100%;margin-top: 20rpx;text-align: center;color:red;padding:20rpx 0rpx;">
			退出登陆
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		computed: {
	
		},
		methods: {
			to(url) {
				if (url.indexOf('/pages/') <= -1) {
					if (url == 'showPhone') {
						this.showPhone = true;
						console.log('showPhone',this.showPhone)
					}
				} else {
					uni.navigateTo({
						url: url
					})
				}
			}
		}
	}
</script>

<style>
</style>
